/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.crm.workflow.entity.WorkFlowNodeAct
   Module Description   :

   Date Created      : 2011/3/3
   Original Author   : cut7man
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.crm.workflow.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.yaodian100.core.form.entity.Attribute;

/**
 * @author cut7man
 * 
 */
@Entity
@Table(name = "CRM_WORKFLOW_NODE_ACT")
public class WorkFlowNodeAct {
	private String id;
	private WorkFlowNode node;
	private Attribute attr;

	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the node
	 */
	@ManyToOne
	@JoinColumn(name = "NODE_ID")
	public WorkFlowNode getNode() {
		return node;
	}

	/**
	 * @param node the node to set
	 */
	public void setNode(WorkFlowNode node) {
		this.node = node;
	}

	/**
	 * @return the attr
	 */
	@ManyToOne
	@JoinColumn(name = "ATTR_ID")
	public Attribute getAttr() {
		return attr;
	}

	/**
	 * @param attr the attr to set
	 */
	public void setAttr(Attribute attr) {
		this.attr = attr;
	}
}
